home *** CD-ROM | disk | FTP | other *** search
- Path: mail2news.demon.co.uk!devmaccn.demon.co.uk
- From: Alan Griffiths <aGriffiths@ma.ccngroup.com>
- Newsgroups: comp.lang.c++
- Subject: Re: VC++ 4.0 and C++ syntax
- Date: Fri, 19 Apr 1996 15:50:31 GMT
- Organization: CCN Market Analysis
- Distribution: world
- Message-ID: <890795677wnr@ma.ccngroup.com>
- References: <317290A7.57C0@spr.com>
- Reply-To: aGriffiths@ma.ccngroup.com
- X-NNTP-Posting-Host: devmaccn.demon.co.uk
- X-Broken-Date: Friday, Apr 19, 1996 15.50.31 GMT
- X-Newsreader: Newswin Alpha 0.6
- X-Mail2News-Path: devmaccn.demon.co.uk
-
- In article: <317290A7.57C0@spr.com> sudip@spr.com writes:
- >
- > Greetings,
- >
- > VC++ 4.0 allows the following syntax to obtain the address of
- > a class member function
- >
- > CObArray Ob;
- > Ob.SetSize(1);
- >
- > if (0 == Ob.GetSize ) // compiles and links
- > {
- > return;
- > }
-
- If you think that's silly try giving it:
-
- int main()
- {
- int i = 0;
-
- if (i->i())
- i++;
-
- return i;
- }
-
- PS
-
- You are right, M$ are wrong.
-
- __
- Alan Griffiths | Also editor of: The ISDF Newsletter
- Senior Systems Consultant, | (An Association of C and C++ Users publication)
- CCN Group Limited. | (ISDF editor : isdf@octopull.demon.co.uk)
- (agriffiths@ma.ccngroup.com) | (For ACCU see : http://bach.cis.temple.edu/accu)
-
-